package com.swt.testdemo.util;

import cn.hutool.core.collection.CollUtil;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * @author BleethNie
 * @version 1.0
 * @date 2020/11/17 10:31
 **/
public class TestMap {

    public static void main(String[] args) {

        List<String> list = new ArrayList<>();
        list.add("hello");
        list.add("你好");



        Map<Object, String> stringMap = CollUtil.fieldValueMap(list, "hello");
        System.err.println(stringMap);
    }
}
